<?php /* Smarty version Smarty-3.1.18, created on 2014-04-27 16:20:20
         compiled from "styles\desktop\templates\monat.htpl" */ ?>
<?php /*%%SmartyHeaderCode:5018535be6f26e94c7-18137854%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '665437f7468ba62ed2d7d76e2bd5908b10ce800c' => 
    array (
      0 => 'styles\\desktop\\templates\\monat.htpl',
      1 => 1398608415,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '5018535be6f26e94c7-18137854',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.18',
  'unifunc' => 'content_535be6f2712324_10735964',
  'variables' => 
  array (
    'vmonat' => 0,
    'monate' => 0,
    'anzeige' => 0,
    'jahre' => 0,
    'nmonat' => 0,
    'meditage' => 0,
    'tage' => 0,
    'datum' => 0,
    'daten' => 0,
    'ks_arten' => 0,
    'medi' => 0,
    'medikamente' => 0,
    'grad' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_535be6f2712324_10735964')) {function content_535be6f2712324_10735964($_smarty_tpl) {?><?php if (!is_callable('smarty_function_html_options')) include 'C:\\xampp\\htdocs\\ksk\\include\\smarty\\plugins\\function.html_options.php';
if (!is_callable('smarty_modifier_date_format')) include 'C:\\xampp\\htdocs\\ksk\\include\\smarty\\plugins\\modifier.date_format.php';
if (!is_callable('smarty_function_html_checkboxes')) include 'C:\\xampp\\htdocs\\ksk\\include\\smarty\\plugins\\function.html_checkboxes.php';
if (!is_callable('smarty_function_html_radios')) include 'C:\\xampp\\htdocs\\ksk\\include\\smarty\\plugins\\function.html_radios.php';
?><h2>Dieser Monat</h2>
<p>
<form action="?seite=monat" method="POST">
	<a href="?seite=monat&amp;monat=<?php echo $_smarty_tpl->tpl_vars['vmonat']->value;?>
">vorheriger Monat</a> Monat:
	<?php echo smarty_function_html_options(array('name'=>'monat','options'=>$_smarty_tpl->tpl_vars['monate']->value,'selected'=>$_smarty_tpl->tpl_vars['anzeige']->value['monat']+0),$_smarty_tpl);?>

	Jahr: <?php echo smarty_function_html_options(array('name'=>'jahr','options'=>$_smarty_tpl->tpl_vars['jahre']->value,'selected'=>$_smarty_tpl->tpl_vars['anzeige']->value['jahr']),$_smarty_tpl);?>
 <input
		type="submit"> <a href="?seite=monat&amp;monat=<?php echo $_smarty_tpl->tpl_vars['nmonat']->value;?>
">nächster
		Monat</a>
</form>
</p>
<p>
	Tage mit Kopfschmerzen in diesem Monat: <?php echo $_smarty_tpl->tpl_vars['meditage']->value['kstage'];?>
<br>
	Tage mit Schmerzmitteln in diesem Monat: <?php echo $_smarty_tpl->tpl_vars['meditage']->value['meditage'];?>

</p>
<p>
<table border="1">
	<thead>
		<tr>
			<th rowspan="2">Datum</th>
			<th colspan="3">Art</th>
			<th rowspan="2">Medikamente</th>
			<th colspan="5">Graduierung</th>
			<th rowspan="2">Informationen</th>
		</tr>
		<tr>
			<th>M</th>
			<th>S</th>
			<th>?</th>
			<th>0</th>
			<th>1</th>
			<th>2</th>
			<th>3</th>
			<th>4</th>
		</tr>
	</thead>
	<tbody>
		<?php  $_smarty_tpl->tpl_vars['daten'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['daten']->_loop = false;
 $_smarty_tpl->tpl_vars['datum'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['tage']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['daten']->key => $_smarty_tpl->tpl_vars['daten']->value) {
$_smarty_tpl->tpl_vars['daten']->_loop = true;
 $_smarty_tpl->tpl_vars['datum']->value = $_smarty_tpl->tpl_vars['daten']->key;
?>
		<tr>
			<td><a href="?seite=edit&amp;date=<?php echo $_smarty_tpl->tpl_vars['datum']->value;?>
"><?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['datum']->value,'%d.%m.%Y');?>
</a>
			</td>
			<td><?php echo smarty_function_html_checkboxes(array('name'=>'art','selected'=>$_smarty_tpl->tpl_vars['daten']->value['ks_art'],'options'=>$_smarty_tpl->tpl_vars['ks_arten']->value,'labels'=>false,'separator'=>'</td>
			<td>'),$_smarty_tpl);?>
 <?php  $_smarty_tpl->tpl_vars['medi'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['medi']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['daten']->value['ks_medis']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['medi']->key => $_smarty_tpl->tpl_vars['medi']->value) {
$_smarty_tpl->tpl_vars['medi']->_loop = true;
?><?php echo $_smarty_tpl->tpl_vars['medikamente']->value[$_smarty_tpl->tpl_vars['medi']->value];?>
, <?php } ?></td>
			<td><?php echo smarty_function_html_radios(array('name'=>"graduierung[".((string)$_smarty_tpl->tpl_vars['datum']->value)."]",'selected'=>$_smarty_tpl->tpl_vars['daten']->value['ks_grad'],'options'=>$_smarty_tpl->tpl_vars['grad']->value,'labels'=>false,'separator'=>'</td>
			<td>'),$_smarty_tpl);?>
 <?php echo $_smarty_tpl->tpl_vars['daten']->value['ks_info'];?>
</td>
		</tr>
		<?php } ?>
	</tbody>
</table>
</p><?php }} ?>
